/**
 * 
 */
package submarines.logic;

/**
 * @author Alon
 * 
 */
public class Submarine
{
	public enum eDirection
	{
		Horizontal, Vertical
	}

	private int length = 0;

	private eDirection direction;

	public Submarine(int length, eDirection direction)
	{
		this.setLength(length);
		this.setDirection(direction);
	}

	/**
	 * @param length
	 *            the length to set
	 */
	private void setLength(int length)
	{
		this.length = length;
	}

	/**
	 * @return the length
	 */
	public int getLength()
	{
		return length;
	}

	/**
	 * @param direction
	 *            the direction to set
	 */
	public void setDirection(eDirection direction)
	{
		this.direction = direction;
	}

	/**
	 * @return the direction
	 */
	public eDirection getDirection()
	{
		return direction;
	}

}
